package com.test39_集合应用.vo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 公司
 */
public class Company implements Serializable {
    private String name;
    private String site;
    private Map<Long, Dept> depts;

    public Company() {
        this(null, null);
    }

    public Company(String name, String site) {
        this.name = name;
        this.site = site;
        this.depts = new HashMap<>();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public Map<Long, Dept> getDepts() {
        return depts;
    }

    public void setDepts(Map<Long, Dept> depts) {
        this.depts = depts;
    }

    @Override
    public String toString() {
        return "【Company】公司名称：" + this.name + "、服务站点：" + this.site;
    }
}
